for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
module.exports = (input, callback) => {
const validate = require('./validate')
let error = null
let output
validate(input, (validatedInput, thrownError) => {
input = validatedInput
error = thrownError
})
output = {
'version': {'ref': 'input'},
'metadata': [
{'name': 'topic', 'value': 'Hulk Hogan'},
{'name': 'timestamp', 'value': Date.now().toString()}
]
}
callback(error, output)